<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML >
<html lang="en">
<head>
<base href="<%=basePath%>">
<meta charset="UTF-8">
<title>面试管理.jsp</title>


<script type="text/javascript" src="feng/js/jquery-1.8.3.js"></script>

<link rel="stylesheet" href="feng/css/cal.css"  type="text/css" />
<link rel="stylesheet" href="feng/css/my.css"  type="text/css" />
<script src="feng/js/cal.js" type="text/javascript" charset="gbk"></script>

<link rel="stylesheet" type="qiang/text/css" href="feng/css/header.css">
<script type="text/javascript" src="feng/js/header.js"></script>

<link rel="stylesheet" type="text/css" href="feng/css/left.css">
<script type="text/javascript" src="feng/js/left.js"></script>

<link rel="stylesheet" type="text/css" href="feng/css/link.css">
<link rel="stylesheet" type="text/css" href="feng/css/query.css">
<link rel="stylesheet" type="text/css" href="feng/css/result.css">

<script type="text/javascript">
	$(function(){
	  
		$("table tr:odd").css("background-color","#FFFFFF");
		$("#chaxun").click(function(){
		$("#form1").submit();
		});
	});
	function jump(pageNo){
		$("#pageNo").val(pageNo);
		var s=$("#pageNo").val();
		$("#form1").submit();
	 }
	 function del(id){
	 var s=confirm("删除是不可回复的,您确定要删除吗");
	 if(s){
	 window.location.href="feng/delete?id="+id;
	 }
	 }
</script>
<style type="text/css">
 #li2 td{text-align:center;line-height:20px;height:20px;font-size:13px;border:1px solid #333}
 #page li{float: left;font-size: 20px;margin-left: 20px} 
</style>
</head>

<body>
	<div id=all
		style="width:1050px ;height: 2000px;background-color: #C9C9C9;margin: 0 auto;position:relative;top:30px;">
		<div id="header"
			style="width: 1030px; height:100px;position:absolute;left: 10px;top:0px;background-color:white;">
			<%@ include file="header.jsp"%>
		</div>
		<div id="left"
			style="height: 1000px;width: 200px; position:absolute;left: 10px;top:100px;background-color:white;">
			<%@ include file="left.jsp"%>
		</div>
		<div id="right"
			style="height: 1000px;width: 810px; ;position:absolute;left: 230px;top:100px;
			background-color:#F4F4F4;">
		<div id="h1" style="width:787px;float:left;padding:14px 21px;font-size:15px;height:500px">
        	<div style="margin-bottom:23px">
            	招聘管理>>面试管理
            </div>
            <div style="position:relative;margin-bottom:23px;font-size:13px">
            <form action="feng/find1" method="post" id="form1">
            <input type="hidden" id="pageNo" name="pageNo">
            	<div style="float:left">姓名：
            	<input type="text"  size="8" class="li1" name="name" value="${map['name']}">&nbsp;
                应聘职位：<input type="text"  size="11" class="li1" name="zname" value="${map['zname']}">&nbsp;
               工作经验：<input type="text"  size="7" class="li1" name="jingyan" value="${map['jingyan']}">&nbsp;
                简历状态：<select name="status">
                <option value="">--请选择--</option>
                <option value="1" <c:if test="${map['status']==1}">selected</c:if>>存档</option>
                <option value="2" <c:if test="${map['status']==2}">selected</c:if>>推荐面试</option>
                <option value="3" <c:if test="${map['status']==3}">selected</c:if>>推荐二面</option>
                <option value="4" <c:if test="${map['status']==4}">selected</c:if>>推荐三面</option>
                <option value="5" <c:if test="${map['status']==5}">selected</c:if>>建议录用</option>
                <option value="6" <c:if test="${map['status']==6}">selected</c:if>>录用</option>
                <option value="7" <c:if test="${map['status']==7}">selected</c:if>>删除</option>
                </select>&nbsp;&nbsp;登记日期：</div><div style="float:left">
                <!--日历 begin-->
                
                <div class="data_box" id="data_box" style="position:absolute;z-index: 2">
            	<input type="text"  class="showDate"  style="width:96px;height:22px;" name="time" value="${map['time']}"/>
           		 <div class="sel_date dn" style="background-color:#E3E5ED;">
                <div class="clearfix">
                    <span class="prev_y fl">&lt;&lt;</span><span class="prev_m fl">&lt;</span>
                    <span class="next_y fr">&gt;&gt;</span><span class="next_m fr">&gt;</span>
                    <div class="show_mn">
                        <input type="text" class="showDate2 year" value="选择年份" style="background-color:#E3E5ED;color:black"/>
                        <span class="ml5 mr5">年</span>
                        <input type="text" class="showDate2 month" value="选择月份" style="background-color:#E3E5ED;color:black"/>
                        <span class="ml5">月</span>
                    </div>              
                </div>
                <table class="data_table">
                    <thead>
                        <tr>
                            <td>日</td><td>一</td><td>二</td><td>三</td><td>四</td><td>五</td><td>六</td>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>1</td><td></td><td></td><td></td><td></td><td></td><td></td>
                        </tr>
                        <tr>
                            <td>1</td><td></td><td></td><td></td><td></td><td></td><td></td>
                        </tr>
                        <tr>
                            <td></td><td></td><td></td><td></td><td></td><td></td><td></td>
                        </tr>
                        <tr>
                            <td></td><td></td><td></td><td></td><td></td><td></td><td></td>
                        </tr>
                        <tr>
                            <td></td><td></td><td></td><td></td><td></td><td></td><td></td>
                        </tr>
                        <tr>
                            <td></td><td></td><td></td><td></td><td></td><td></td><td>o</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <!--日历 end-->
        </form>
        </div>
                    <div style="width:56px;height:22px;cursor:pointer;background-color:#70B5EC;border-radius:5px;color:white;
                     text-align:center;line-height:22px;position:absolute;right:22px;top:36px;font-size:13px" id="chaxun">查询
                    </div>
                </div>
            <div style="margin-top:103px">
            	<table style="border-collapse:collapse" id="li2">
                <tr style="background-color:#E4E4E4">
                <td style="width:45px">姓名</td>
                 <td style="width:32px">性别</td>
                  <td style="width:105px">毕业院校</td>
                   <td style="width:32px">学历</td>
                    <td style="width:107px">专业</td>
                     <td style="width:104px">应聘职位</td>
                      <td style="width:61px">工作经验</td>
                       <td style="width:70px">登记日期</td>
                       <td style="width:87px">简历状态</td>
                       <td style="width:157px">操作</td>   
                </tr>
                  <c:forEach items="${list}" var="i">
	                        <tr>
	                        	<td>${i.name}</td>
	                            <td>${i.sex}</td>
	                            <td>${i.school}</td>
	                            <td>${i.xueli}</td>
	                            <td>${i.zhuanye}</td>
	                            <td>${i.zhiweibiao.name}</td>
	                            <td>${i.jingyan}</td>
	                            <td><f:formatDate value="${i.time}" pattern="yyyy-MM-dd"/></td>
	                            <td>
	                            <c:if test="${i.status==1}">存档</c:if>
	                            <c:if test="${i.status==2}">推荐面试</c:if>
	                            <c:if test="${i.status==3}">推荐二面</c:if>
	                            <c:if test="${i.status==4}">推荐三面</c:if>
	                            <c:if test="${i.status==5}">建议录用</c:if>
	                            <c:if test="${i.status==6}">录用</c:if>
	                            <c:if test="${i.status==7}">删除</c:if>
	                            </td>
	                            <td>
	                            <a href="feng/look2?id=${i.id}" style="text-decoration: underline;cursor: pointer;">面试结果登记</a>
	                            <a href="feng/look1?id=${i.id}" style="text-decoration: underline;cursor: pointer;">明细</a>
	                            <a  href="javascript:del(${i.id})" style="text-decoration: underline;cursor: pointer;">删除</a></td>
	                            
	                        </tr>
	                    </c:forEach>   
            </table>
            <div style="width: 700px;margin-left: 60px;margin-top: 100px;">
              <input type="hidden" value="${pageNo}" id="hid"/>
						<ul id="page">
						    <li><a href="javascript:jump(${pageNo-1})">Prev</a></li>
						    <li><a href="javascript:jump(${1})">1</a></li>
						    <li><a href="javascript:jump(${2})">2</a></li>
						    <li><a href="javascript:jump(${3})">3</a></li>
						    <li><a href="javascript:jump(${4})">4</a></li>
						    <li><a href="javascript:jump(${5})">5</a></li>
						    <li><a href="javascript:jump(${6})">6</a></li>
						    <li><a href="javascript:jump(${7})">7</a></li>
						    <li><a href="javascript:jump(${8})">8</a></li>
						    <li><a href="javascript:jump(${9})">9</a></li>
						    <li><a href="javascript:jump(${10})">10</a></li>
						    <li><a href="javascript:jump(${pageNo+1})">Next</a> <input type="text" value="" id="go" size="2" style="height: 20px;"/><input type="button" value="Go" onclick="backGo()"/>
						    			<span style="font-size: 14px">共${totalPage}页&nbsp;第${pageNo}页</span></li>
						   
						    
						</ul>
						
                    </div>
                    <script type="text/javascript">
                    		function backGo(){
                    		var id=$("#go").val();
                    		jump(id);
                    	}
                    </script>
                    
                </div>  
            </div>
    </div>
		
		
		
		
		
		
		
        </div>
	</div>
	</div>

</body>
</html>
